import request from "@/axios";

// 获取所有品种
export const getCategorys = () =>
  request({
    url: "/api/datasupport/getcategorys",
    method: "get"
  });

// 获取城市列表
export const getCityData = () =>
  request({
    url: "/api/datasupport/getallcitydata",
    method: "get"
  });

// 查询所有合约月
export const getFutures = () =>
  request({
    url: "/api/datasupport/getcategoryfutures",
    method: "get"
  });

// 根据期货合约获取合约月
export const getFuturesByCode = option =>
  request({
    url: "/api/datasupport/getfuturesbycode",
    method: "get",
    params: option
  });
